home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / moonstonemadness.swf / scripts / __Packages / Library / BasicPopUp.as next >
Encoding:
Text File  |  2007-09-27  |  1.1 KB  |  60 lines

  1. class Library.BasicPopUp extends Library.State
  2. {
  3.    var mcRef;
  4.    var oListener;
  5.    static var NEED_UPDATE = 1;
  6.    function BasicPopUp(__mcRef)
  7.    {
  8.       super(__mcRef);
  9.       this.setState("Hidden");
  10.    }
  11.    function doHide()
  12.    {
  13.       this.setState("Hidden");
  14.    }
  15.    function doClose()
  16.    {
  17.       if(this.CurrentState == "Idle")
  18.       {
  19.          this.setState("Out");
  20.       }
  21.    }
  22.    function doOpen()
  23.    {
  24.       this.setState("In");
  25.    }
  26.    function get Ref()
  27.    {
  28.       return this.mcRef.mcState.mcBox;
  29.    }
  30.    function set Listener(__o)
  31.    {
  32.       this.oListener = __o;
  33.    }
  34.    function doIn()
  35.    {
  36.       if(this.isStateComplete())
  37.       {
  38.          this.setState("Idle");
  39.       }
  40.    }
  41.    function doOut()
  42.    {
  43.       if(this.isStateComplete())
  44.       {
  45.          this.setState("Hidden");
  46.       }
  47.    }
  48.    function doLoadStateAction()
  49.    {
  50.       this.mcRef.mcState.btnBlock.onRelease = function()
  51.       {
  52.       };
  53.       this.mcRef.mcState.btnBlock.useHandCursor = false;
  54.       if(this.CurrentState != "Hidden")
  55.       {
  56.          this.oListener.onPopUpEvent(Library.BasicPopUp.NEED_UPDATE,this);
  57.       }
  58.    }
  59. }
  60.